/****** Object:  Table [dbo].[airport]   ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[airport](
	[airportCode] [nchar](10) NOT NULL,
	[cityCode] [nchar](10) NULL,
	[airportName] [nchar](20) NULL,
 CONSTRAINT [PK_airport] PRIMARY KEY CLUSTERED 
(
	[airportCode] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[airport]  WITH CHECK ADD  CONSTRAINT [FK_airport_city] FOREIGN KEY([cityCode])
REFERENCES [dbo].[city] ([cityCode])
GO

ALTER TABLE [dbo].[airport] CHECK CONSTRAINT [FK_airport_city]
GO

